<template>
    <input v-model="form.username" type="text" name="" id="">
    <br>
    <input v-model="form.password" type="text" name="" id="">
    <br>
    <button @click="login">登录</button>
</template>
<script setup lang='ts'>
import {reactive} from "vue"
import {Account} from "../interface"
import {Login} from "../api"
import {AxiosResponse} from "axios"
const form=reactive<Account>({
    username:'admin',
    password:'123456'
})


const login=async ()=>{
   let res:AxiosResponse=await Login(form)
   console.log(res)
}
</script>
<style scoped >
</style>
